#ifndef __CANDIDATERESULT_H__
#define __CANDIDATERESULT_H__
#include <string>

using std::string;

struct CandidateResult
{
    int _dist;
    int _freq;
    string _word;
};

static bool operator<(const CandidateResult &lhs, const CandidateResult &rhs){
    if(lhs._dist == rhs._dist){
        return lhs._freq < rhs._freq;
    }else{
        return lhs._dist > rhs._dist;
    }
}

#endif

